package com.zhiyou.service;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import com.zhiyou.model.FyTeacher;

public interface TeacherService {
	
		//老师登录
		FyTeacher loginTeacher(String tacher_phone,String password);
		//查询全部老师
		List<FyTeacher> selectAllTeacher();

		//根据id查询老师
		FyTeacher selectByTeacherid(int teacher_id);
		
		//修改登录密码(老师)
		void updateTpass(FyTeacher Teacher);
		
		//修改手机号(老师)
		void updateTpho(FyTeacher Teacher);
		
		//老师登录
	/*	public Map<FyTeacher, String> Tlogin(String tacher_phone, String password);*/
		
		//忘记密码
		void Tfoget(@Param("teacher_phone")String teacher_phone,@Param("password")String repassword);
		
		//修改支付密码
		void TupdatePay(FyTeacher teacher);
		
		//修改头像
		void upload(MultipartFile file,Integer teacher_id);
		
		//(生产者)发送手机验证码
		void sendCode(String mobile);
		//修改密码
		String Tupdate(String code,String mobile,String password);
		
		

}
